\hypertarget{class_routes__model}{\section{Routes\-\_\-model Class Reference}
\label{class_routes__model}\index{Routes\-\_\-model@{Routes\-\_\-model}}
}
Inheritance diagram for Routes\-\_\-model\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_routes__model}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_routes__model_a4345ab4cf9a6b25c37fb77ebb742161a}{Routes\-\_\-model} ()
\item 
\hyperlink{class_routes__model_ac266c866298ba454f5fa772cbd2c13bb}{get\-Route\-By\-I\-D} (\$route\-Id)
\item 
\hyperlink{class_routes__model_a380f5c785313ca6cda570b75d9224e3d}{get\-Route\-From\-User} (\$user\-Id)
\item 
\hyperlink{class_routes__model_a2f044cce3d4730361c469a81c5d6ba6c}{add\-Route} (\$owner\-I\-D, \$name, \$route\-File, \$difficulty, \$ground, \$length, \$public, \$favorite)
\item 
\hyperlink{class_routes__model_ab086ca3d96b3686d3b9bf552b57ea6eb}{del\-Route} (\$route\-I\-D)
\item 
\hyperlink{class_routes__model_a6923988c32219bdfc59460d6aa9ebc31}{save\-Route} (\$route\-I\-D, \$difficulty, \$ground, \$public, \$favorite)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Model for the routes

\begin{DoxyAuthor}{Author}
Simon, Denis, Dennis 
\end{DoxyAuthor}


\subsection{Member Function Documentation}
\hypertarget{class_routes__model_a2f044cce3d4730361c469a81c5d6ba6c}{\index{Routes\-\_\-model@{Routes\-\_\-model}!add\-Route@{add\-Route}}
\index{add\-Route@{add\-Route}!Routes_model@{Routes\-\_\-model}}
\subsubsection[{add\-Route}]{\setlength{\rightskip}{0pt plus 5cm}{\bf add\-Route} (
\begin{DoxyParamCaption}
\item[{\$}]{owner\-I\-D, }
\item[{\$}]{name, }
\item[{\$}]{route\-File, }
\item[{\$}]{difficulty, }
\item[{\$}]{ground, }
\item[{\$}]{length, }
\item[{\$}]{public, }
\item[{\$}]{favorite}
\end{DoxyParamCaption}
)}}\label{class_routes__model_a2f044cce3d4730361c469a81c5d6ba6c}
Adds a route to the db 
\begin{DoxyParams}{Parameters}
{\em \$owner\-I\-D} & Owner I\-D \\
\hline
{\em \$name} & Name \\
\hline
{\em \$route\-File} & File where the points are stored in \\
\hline
{\em \$difficulty} & Difficulty \\
\hline
{\em \$ground} & Ground \\
\hline
{\em \$length} & Length in m \\
\hline
{\em \$public} & Boolean is Public? \\
\hline
\end{DoxyParams}
\hypertarget{class_routes__model_ab086ca3d96b3686d3b9bf552b57ea6eb}{\index{Routes\-\_\-model@{Routes\-\_\-model}!del\-Route@{del\-Route}}
\index{del\-Route@{del\-Route}!Routes_model@{Routes\-\_\-model}}
\subsubsection[{del\-Route}]{\setlength{\rightskip}{0pt plus 5cm}{\bf del\-Route} (
\begin{DoxyParamCaption}
\item[{\$}]{route\-I\-D}
\end{DoxyParamCaption}
)}}\label{class_routes__model_ab086ca3d96b3686d3b9bf552b57ea6eb}
deletes a route by I\-D 
\begin{DoxyParams}{Parameters}
{\em \$route\-I\-D} & Id of the route \\
\hline
\end{DoxyParams}
\hypertarget{class_routes__model_ac266c866298ba454f5fa772cbd2c13bb}{\index{Routes\-\_\-model@{Routes\-\_\-model}!get\-Route\-By\-I\-D@{get\-Route\-By\-I\-D}}
\index{get\-Route\-By\-I\-D@{get\-Route\-By\-I\-D}!Routes_model@{Routes\-\_\-model}}
\subsubsection[{get\-Route\-By\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}{\bf get\-Route\-By\-I\-D} (
\begin{DoxyParamCaption}
\item[{\$}]{route\-Id}
\end{DoxyParamCaption}
)}}\label{class_routes__model_ac266c866298ba454f5fa772cbd2c13bb}
returns a \hyperlink{class_route}{Route} by the route\-I\-D 
\begin{DoxyParams}{Parameters}
{\em \$route\-Id} & I\-D of the route \\
\hline
\end{DoxyParams}
\hypertarget{class_routes__model_a380f5c785313ca6cda570b75d9224e3d}{\index{Routes\-\_\-model@{Routes\-\_\-model}!get\-Route\-From\-User@{get\-Route\-From\-User}}
\index{get\-Route\-From\-User@{get\-Route\-From\-User}!Routes_model@{Routes\-\_\-model}}
\subsubsection[{get\-Route\-From\-User}]{\setlength{\rightskip}{0pt plus 5cm}{\bf get\-Route\-From\-User} (
\begin{DoxyParamCaption}
\item[{\$}]{user\-Id}
\end{DoxyParamCaption}
)}}\label{class_routes__model_a380f5c785313ca6cda570b75d9224e3d}
Returns all routes of a user 
\begin{DoxyParams}{Parameters}
{\em \$user\-Id} & I\-D of the user \\
\hline
\end{DoxyParams}
\hypertarget{class_routes__model_a4345ab4cf9a6b25c37fb77ebb742161a}{\index{Routes\-\_\-model@{Routes\-\_\-model}!Routes\-\_\-model@{Routes\-\_\-model}}
\index{Routes\-\_\-model@{Routes\-\_\-model}!Routes_model@{Routes\-\_\-model}}
\subsubsection[{Routes\-\_\-model}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Routes\-\_\-model} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_routes__model_a4345ab4cf9a6b25c37fb77ebb742161a}
$\ast$\-Constructor \hypertarget{class_routes__model_a6923988c32219bdfc59460d6aa9ebc31}{\index{Routes\-\_\-model@{Routes\-\_\-model}!save\-Route@{save\-Route}}
\index{save\-Route@{save\-Route}!Routes_model@{Routes\-\_\-model}}
\subsubsection[{save\-Route}]{\setlength{\rightskip}{0pt plus 5cm}{\bf save\-Route} (
\begin{DoxyParamCaption}
\item[{\$}]{route\-I\-D, }
\item[{\$}]{difficulty, }
\item[{\$}]{ground, }
\item[{\$}]{public, }
\item[{\$}]{favorite}
\end{DoxyParamCaption}
)}}\label{class_routes__model_a6923988c32219bdfc59460d6aa9ebc31}
Saves a route to the db 
\begin{DoxyParams}{Parameters}
{\em \$owner\-I\-D} & Owner I\-D \\
\hline
{\em \$name} & Name \\
\hline
{\em \$route\-File} & File where the points are stored in \\
\hline
{\em \$difficulty} & Difficulty \\
\hline
{\em \$ground} & Ground \\
\hline
{\em \$length} & Length in m \\
\hline
{\em \$public} & Boolean is Public? \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
/\-Applications/\-M\-A\-M\-P/htdocs/\-Workspace/blp2.\-0/application/models/\hyperlink{routes__model_8php}{routes\-\_\-model.\-php}\end{DoxyCompactItemize}
